// Copyright 2020-2024 Espressif Systems (Shanghai) CO LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#pragma once

/* Be carefull if you want to change the index. It must be bigger then the size of string_desc_arr
   For now 7 would be also ok. But lets reserve some fields fot the future additions
   Also it must be match with the value in the openocd/esp_usb_bridge.cfg file
   Currently it is defined as < esp_usb_jtag_caps_descriptor 0x030A >
*/
#define EUB_DEBUG_PROBE_STR_DESC_INX    0x0A

void eub_debug_probe_init(void);
int eub_debug_probe_get_proto_caps(void *dest);
void eub_debug_probe_task_suspend(void);
void eub_debug_probe_task_resume(void);
bool eub_debug_probe_target_is_esp32(void);
